package com.ruoyi.rsikManage.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.Objects;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class VideoDiagnosisResult {
    //自增主键
    private Integer id;
    private Long unitCode;
    private String channelCode;
    private String channelName;
    private String deviceIp;
    private String deviceName;
    private String isOnline;
    private String streamFormat;
    private Integer cacType;
    private String orgName;
    private Date diagnosisTime;
    private Integer result;
    private String diagnosisResultReason;
    private Integer colorCast;
    private Integer contrastRatio;
    private Integer crossStriation;
    private Integer definition;
    private Integer freeze;
    private Integer highLuminance;
    private Integer jitter;
    private Integer loss;
    private Integer lowLuminance;
    private Integer noise;
    private Integer occlusion;
    private Integer rollingStripe;
    private Integer sceneChange;
    private Integer stripe;
    private Integer transverseWave;

    public VideoDiagnosisResult setId(Integer id) {
        this.id = id;
        return this;
    }

    public VideoDiagnosisResult setUnitCode(Long unitCode) {
        this.unitCode = unitCode;
        return this;
    }

    public VideoDiagnosisResult setChannelCode(String channelCode) {
        this.channelCode = channelCode;
        return this;
    }

    public VideoDiagnosisResult setChannelName(String channelName) {
        this.channelName = channelName;
        return this;
    }

    public VideoDiagnosisResult setDeviceIp(String deviceIp) {
        this.deviceIp = deviceIp;
        return this;
    }

    public VideoDiagnosisResult setDeviceName(String deviceName) {
        this.deviceName = deviceName;
        return this;
    }

    public VideoDiagnosisResult setIsOnline(String isOnline) {
        this.isOnline = isOnline;
        return this;
    }

    public VideoDiagnosisResult setStreamFormat(String streamFormat) {
        this.streamFormat = streamFormat;
        return this;
    }

    public VideoDiagnosisResult setCacType(Integer cacType) {
        this.cacType = cacType;
        return this;
    }

    public VideoDiagnosisResult setOrgName(String orgName) {
        this.orgName = orgName;
        return this;
    }

    public VideoDiagnosisResult setDiagnosisTime(Date diagnosisTime) {
        this.diagnosisTime = diagnosisTime;
        return this;
    }

    public VideoDiagnosisResult setResult(Integer result) {
        this.result = result;
        return this;
    }

    public VideoDiagnosisResult setDiagnosisResultReason(String diagnosisResultReason) {
        this.diagnosisResultReason = diagnosisResultReason;
        return this;
    }

    public VideoDiagnosisResult setColorCast(Integer colorCast) {
        this.colorCast = colorCast;
        return this;
    }

    public VideoDiagnosisResult setContrastRatio(Integer contrastRatio) {
        this.contrastRatio = contrastRatio;
        return this;
    }

    public VideoDiagnosisResult setCrossStriation(Integer crossStriation) {
        this.crossStriation = crossStriation;
        return this;
    }

    public VideoDiagnosisResult setDefinition(Integer definition) {
        this.definition = definition;
        return this;
    }

    public VideoDiagnosisResult setFreeze(Integer freeze) {
        this.freeze = freeze;
        return this;
    }

    public VideoDiagnosisResult setHighLuminance(Integer highLuminance) {
        this.highLuminance = highLuminance;
        return this;
    }

    public VideoDiagnosisResult setJitter(Integer jitter) {
        this.jitter = jitter;
        return this;
    }

    public VideoDiagnosisResult setLoss(Integer loss) {
        this.loss = loss;
        return this;
    }

    public VideoDiagnosisResult setLowLuminance(Integer lowLuminance) {
        this.lowLuminance = lowLuminance;
        return this;
    }

    public VideoDiagnosisResult setNoise(Integer noise) {
        this.noise = noise;
        return this;
    }

    public VideoDiagnosisResult setOcclusion(Integer occlusion) {
        this.occlusion = occlusion;
        return this;
    }

    public VideoDiagnosisResult setRollingStripe(Integer rollingStripe) {
        this.rollingStripe = rollingStripe;
        return this;
    }

    public VideoDiagnosisResult setSceneChange(Integer sceneChange) {
        this.sceneChange = sceneChange;
        return this;
    }

    public VideoDiagnosisResult setStripe(Integer stripe) {
        this.stripe = stripe;
        return this;
    }

    public VideoDiagnosisResult setTransverseWave(Integer transverseWave) {
        this.transverseWave = transverseWave;
        return this;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        VideoDiagnosisResult that = (VideoDiagnosisResult) o;
        return Objects.equals(channelCode, that.channelCode);
    }

    @Override
    public int hashCode() {
        return Objects.hash(channelCode);
    }
}
